package com.guigu.service.impl.manufacture;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guigu.mapper.manufacture.MProcedureUnitMapper;
import com.guigu.pojo.manufacture.MProcedureUnit;
import com.guigu.service.manufacture.MProcedureUnitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Mr.Zhang
 * @since 2024-12-25
 */
@Service
public class MProcedureUnitServiceImpl extends ServiceImpl<MProcedureUnitMapper, MProcedureUnit> implements MProcedureUnitService {

    @Autowired
    private MProcedureUnitMapper mProcedureUnitMapper;

    @Override
    public ArrayList<MProcedureUnit> SelectAll() {
        ArrayList<MProcedureUnit> mProcedureUnits = (ArrayList<MProcedureUnit>) mProcedureUnitMapper.selectList(null);
        return mProcedureUnits;
    }

    @Override
    public MProcedureUnit SelectById(Integer id) {
        MProcedureUnit mProcedureUnit = mProcedureUnitMapper.selectById(id);
        return mProcedureUnit;
    }
}
